﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WA.Core.DomainModel;

namespace WA.Utility.EntityHelpers
{
    public class PartnerHelper
    {
        public static Partner GetRandomPartnerInstance()
        {
            Random rand=new Random();
            Partner partner = new Partner();
            partner.Address = "Adress:" + DateTime.Now.Day;
            partner.City = "RandomCity:" + DateTime.Now.Millisecond;
            partner.PartnerType = (Int16)rand.Next(2);
            partner.Phone = rand.Next(100, 999).ToString() + "-" + rand.Next(100, 999).ToString();
            partner.Name = "RandomName:" + rand.Next(100);
            partner.IdentificationNumber = "00001111" + rand.Next(1000, 9999).ToString();
            int pom=rand.Next(1);
            partner.IsPayingTax = (pom == 0) ? true : false;            
            return partner;
        }
    }
}
